package cn.edu.fzu.delivery.service.impl;

import cn.edu.fzu.delivery.domain.entity.Logistics;
import cn.edu.fzu.delivery.domain.enums.NetworkCourierStatusEnum;
import cn.edu.fzu.delivery.mapper.LogisticsMapper;
import cn.edu.fzu.delivery.service.LogisticsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author jiebin
 * @data 2022/11/11
 **/
@Service
public class LogisticsServiceImpl implements LogisticsService {
    @Resource
    private LogisticsMapper logisticsMapper;

    @Override
    public void insert(Logistics logistics) {
        logisticsMapper.insert(logistics);
    }


    @Override
    public void updateStatus(Long id,NetworkCourierStatusEnum status) {
        logisticsMapper.update(id,status);
    }
}
